{include file="layout_basic.tpl"}
<form action="" method="post">
	<fieldset>
		<legend>{$ui.newconta}</legend>
		<dl>
			<dt> <label>{$ui.nomeconta} </label></dt>
			<dd> <input name="conta" value="{$edit}" type="text"/> </dd>
		</dl>
		<input type="submit" value="{$ui.saveaction}"/> 
	</fieldset>
</form>

<fieldset>
	<legend>{$ui.listcontas}</legend>
	<div class="widget_tableDiv">
			<table id="datatable">
				<thead>
					<tr>
						<td>{$ui.id}</td>
						<td>{$ui.nomeconta}</td>
						<td>{$ui.actions}</td>
					</tr>
				</thead>
				
				<tbody class="scrollingContent">
					{foreach from=$datatable item=row}
					<tr>
						<td>{$row.cod_conta}</td>
						<td>{$row.nome_conta}</td>
						<td> 
						<a href="?edit={$row.cod_conta}" style="display:inline"><img alt="edit" border="0" src="img/edit.png"/></a>
						&nbsp;
						<a href="?del={$row.cod_conta}" style="display:inline"><img alt="delete" border="0" src="img/delete.jpg"/></a>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
		
		<script type="text/javascript">
			initTableWidget('datatable',570,250,Array('N','S',false));
		</script>	
</fieldset>
{include file="layout_basic_tail.tpl"}